FROM fedora

RUN dnf update -y \
  && dnf install -y \
  vim git wget curl net-tools telnet htop \
  gcc gcc-c++ make cmake gdb \
  clangd clang llvm lldb xmake conan\
  valgrind bcc-tools bpftrace kernel-devel perf \
  strace ltrace heaptrack smem sysstat wireshark tcpdump\
  automake autoconf libtool \
  && dnf clean all

RUN dnf copr enable -y thebeanogamer/golang-github-bazelbuild-bazelisk
RUN dnf install -y bazelisk \
  && dnf clean all

  
RUN dnf install -y  protobuf-devel protobuf-compiler
# 安装 liburing (从源码编译)
RUN git clone https://github.com/axboe/liburing.git \
  && cd liburing\
  && ./configure --cc=gcc --cxx=g++ \
  && make \
  && make install \
  && ldconfig \
  && cd .. 

# 将当前目录及其子目录复制到容器的 /app 目录
COPY . /fastrpc

# 设置工作目录
WORKDIR /fastrpc


CMD ["/bin/bash"]
